<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en"   xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<div th:replace="~{common/commons::topbar}"></div>

<div class="container-fluid">
    <div class="row">

        <div th:replace="~{common/commons::sidebar(active='updateOrder.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h2>编辑状态信息</h2>
            <form th:action="@{/order/updateOrder}" method="post">
                <input name="Id" type="hidden" class="form-control" th:value="${order.id}">
                <div class="form-group">
                    <label>预约状态</label><br/>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="orderCondition" value="1"
                               th:checked="${order.orderCondition==1}">
                        <label class="form-check-label">预约成功</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="orderCondition" value="0"
                               th:checked="${order.orderCondition==0}">
                        <label class="form-check-label">待确定</label>
                    </div>
                </div>
                <div class="form-group">
                    <label>时间</label>
                    <input name="orderTime" type="text"  class="form-control" th:value="${#dates.format(order.orderTime,'yyyy-MM-dd')}" id="dateFormat" autocomplete="off">
                </div>

                    <button type="submit" class="btn btn-primary">提交</button>
            </form>
        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
    ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="asserts/js/popper.min.js"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js"></script>

<!--		日期组件-->
<script type="text/javascript" src="/laydate/laydate.js"></script>
<!-- 改成你的路径 -->
<script>
    //执行一个laydate实例
    laydate.render({
        elem: '#dateFormat' ,
        trigger:'click'//指定元素
    });
</script>
</body>

</html>